//
//  BuildingAnnotation.m
//  projecthz
//
//  Created by tali on 16/8/10.
//  Copyright © 2016年 tali. All rights reserved.
//

#import "BuildingAnnotation.h"

@implementation BuildingAnnotation

-(id)initWithCoordinates:(CLLocationCoordinate2D)paramCoordinates title:(NSString *)paramTitle subTitle:(NSString *)paramSubitle{
    self = [super init];
    if(self != nil)
    {
        _coordinate = paramCoordinates;
        _title = paramTitle;
        _subtitle = paramSubitle;
    }
    return self;
}

-(id)initWithMapItem:(MKMapItem *)item{
    self = [super init];
    if(self != nil)
    {
        _coordinate = item.placemark.coordinate;
        _title = item.name;
        _subtitle = item.placemark.description;
        _mapItem = item;
    }
    return self;
}

@end
